{template 'ssr/common/main'}
{template 'ssr/home/_header'}
<style>
.container-index {
    max-width: 1210px;
    margin: 0 auto;
    padding: 0!important;
}
body {background: #f2f2f2;}
.list {position:relative;margin-bottom:20px}
</style>
<div id="carousel-container" class="carousel slide">
	<div class="carousel-inner" role="listbox" style="height:300px">
		<div class="item active">
			<a href="#">
				<img src="../core/resource/images/banner-380.jpg" style="display: block; width: 100%; height: auto;"/>
			</a>
		</div>
	</div>
</div>
<div class="container-index" style="background:#fff">
	<div class="row margin0">
	<div class="news">
        <div class="left">
			{loop $return['groups'] $item}
             <a href="./index.php?plugin=core&action=home.news&id={$item['id']}">{$item['title']} <i class="fa fa-angle-double-right pull-right" style="padding-top:2px"></i></a>
			{/loop}
		</div>
		{if $return['op']=='list'}
        <div class="right">
			{loop $return['list'] $item}
			 <div class="list">
               <h4><span class="bold">{$item['title']}</span> <span class="pull-right times">{$item['createtime']}</span></h4>
               <p>{$item['desc']}... ...<a class="t-l" href="./index.php?plugin=core&action=home.news&op=detail&id={$item['id']}" > 点击详情 »</a></p>
			 </div>
			 {/loop}
			 {template 'ssr/common/page'}
        </div>
		{/if}
		{if $return['op']=='detail'}
		<div class="right">
			 <div class="list">
				 <h4>{$return['new']['title']} <span class="pull-right times">{$return['new']['createtime']}</span></h4>
               <p>{$return['new']['content']}</p>
			 </div>
        </div>
		{/if}
    </div>
	</div>
</div>
{template 'ssr/home/_footer'}